package edu.winona.csclub.testing.gui;

import java.io.File;

import javax.swing.filechooser.FileFilter;

public class ExtFileFilter extends FileFilter {

	private String s;
	
	public ExtFileFilter(String s){
		this.s = s;
	}
	
	@Override
	public boolean accept(File f) {
		return f.getName().endsWith(s) || f.isDirectory();
	}

	@Override
	public String getDescription() {
		return null;
	}

}
